# this is required
SET(CMAKE_SYSTEM_NAME Linux)

# specify the cross compiler
SET(CMAKE_C_COMPILER    arm-buildroot-linux-uclibcgnueabihf-gcc)
SET(CMAKE_CXX_COMPILER  arm-buildroot-linux-uclibcgnueabihf-g++)
SET(CMAKE_STRIP arm-buildroot-linux-uclibcgnueabihf-strip)

# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH  /opt/hisi/arm-uclib/arm-buildroot-linux-uclibcgnueabihf-4.9.4-uclibc-1.0.3/bin/ )

# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

SET(ARM_UCLIB_LINUX "arm-uclib-linux")